﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MyVoteMVC.Data;
using MyVoteMVC.Domain;
using MyVoteMVC.Common;
using MyVoteMVC.Common.Objects;
using MyVoteMVC.Data.Repositories;

namespace MyVoteMVC.Service
{
    public interface IMessageService : IDisposable
    {   
        //创建
        bool CreateMessage(string activityID, string messageTitle,string messageContent,string userEmailName,out string MessageId);

        //编辑
        bool EditMessage(string activityID,string messageID,string messageTitle,string messageContent,string userEmailName);

        //删除
        bool DeleteMessage(string activityID,string messageID);

        //模糊查找

        IList<VT_Messages> FindMessageList(string strContent);
        //获取
        IList<VT_Messages> GetMessageList(string activityID);
        IList<VT_Messages> GetMessageList();
        //根据分钟数间隔获取信息列表

        IList<VT_Messages> GetMessageListByInterval(string activityID, double timeSpan);

        IList<VT_Messages> GetMessageListByInterval(double timeSpan);

        
    }
}
